﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Maticsoft.Web.Products
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int ProductId=(Convert.ToInt32(strid));
					ShowInfo(ProductId);
				}
			}
		}
		
	private void ShowInfo(int ProductId)
	{
		Maticsoft.BLL.Products bll=new Maticsoft.BLL.Products();
		Maticsoft.Model.Products model=bll.GetModel(ProductId);
		this.lblProductId.Text=model.ProductId.ToString();
		this.lblProductName.Text=model.ProductName;
		this.lblProductType.Text=model.ProductType;
		this.lblDescription.Text=model.Description;
		this.lblInterestRate.Text=model.InterestRate;
		this.lblStartDate.Text=model.StartDate;
		this.lblEndDate.Text=model.EndDate;
		this.lblMinimumInvestment.Text=model.MinimumInvestment.ToString();
		this.lblMaximumInvestment.Text=model.MaximumInvestment.ToString();
		this.lblCurrentValue.Text=model.CurrentValue.ToString();
		this.lblInvestmentReturn.Text=model.InvestmentReturn.ToString();

	}


    }
}
